package com.atguigu05._super.exer3;

/**
 * ClassName: AccountTest
 * Package: com.atguigu05._super.exer3
 * Description:
 *  测试类
 * @Author ZY
 * @Create 21:40
 * @Version 1.0
 */
public class AccountTest {
    public static void main(String[] args) {

        Account account = new Account(1122,20000,0.045);

        account.withdraw(30000);
        System.out.println("您的账户余额为: " + account.getBalance());

        account.withdraw(2500);
        account.deposit(3000);
        System.out.println("您的账户余额为: " + account.getBalance());

        System.out.println("每月利息为: " + account.getMonthlyInterest());
    }
}
